package com.silong.swing.myWindows;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * Created by 龙哥 on 2022-01-17 21:16
 * Silong Software.
 * 外部的监听器类
 */

public class MyFrameOutImple implements ActionListener {

    MyFrameOutClass myFrameOutClass;
    int count =0;
    public MyFrameOutImple(MyFrameOutClass myFrameOutClass){
       this.myFrameOutClass = myFrameOutClass;
    }
    @Override
    public void actionPerformed(ActionEvent e) {
        ++count;
        myFrameOutClass.button2.setText("button1 被点击：" + count + "次");
    }
}
